\hypertarget{class_s_w2_a311___lib_1_1_project_collection}{\section{S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection Class Reference}
\label{class_s_w2_a311___lib_1_1_project_collection}\index{S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection}}
}


Laves til en singleton, så vi altid kun har én database.  


Inheritance diagram for S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_s_w2_a311___lib_1_1_project_collection}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a0677c65be53503572ba4a16f0195b7ca}{Add} (string project\-Name, string admin\-Name)
\begin{DoxyCompactList}\small\item\em Add Project metode med minimalt input. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_ae1f163afd567cd4f81dd40f4a96ecb0c}{Add} (string project\-Name, Date\-Time project\-Start, Date\-Time project\-End, string admin\-Name)
\begin{DoxyCompactList}\small\item\em Add Project metode, med standard input. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_aa2c2b0f22b1f245e47d3bdb46afb0d61}{Add} (\hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} project\-Data)
\begin{DoxyCompactList}\small\item\em Add Project metode der tager et \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} object som input. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_ac0742a2cd78d1a75a24e117ea355bc7f}{Remove} (string project\-Name)
\begin{DoxyCompactList}\small\item\em Fjerner project hvis det eksisterer og Remove\-All returnerer antal elementer fjernet. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a2e9c9d62636550a34c44f4b1b9c73420}{Add\-Task\-To\-Project} (\hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} project, \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} task)
\begin{DoxyCompactList}\small\item\em Finder projektet i databasen og tilføjer \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} til det. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_af0c107c4af77e6b23a673806203c6020}{Remove\-Task\-From\-Project} (string project\-Name, \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} task)
\begin{DoxyCompactList}\small\item\em Finder projektet i databasen og fjerner \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} fra det. \end{DoxyCompactList}\item 
Observable\-Collection$<$ \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} $>$ \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a1e569adeb53d43bb9cf2ce92fb017e66}{Get\-Observable\-Task\-List} (\hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} project)
\begin{DoxyCompactList}\small\item\em Laver en Observable\-Collection med indholdet fra Task\-List og returnerer den. \end{DoxyCompactList}\item 
Observable\-Collection$<$ \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} $>$ \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a69e487c230d9420e2fb7e26e5d29cd85}{Get\-Observable\-Projects} ()
\begin{DoxyCompactList}\small\item\em Laver en Observable\-Collection med indholdet fra \-\_\-database og returnerer den. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a0649c5324c9b1f158c8ddafe14f27e03}{Write\-Database\-To\-File} (string filename, \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} project)
\begin{DoxyCompactList}\small\item\em Skriver backup af \-\_\-database til en fil. \end{DoxyCompactList}\item 
void \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a6c0106916ee2df101944d3c646e5a081}{Read\-Database\-From\-File} ()
\begin{DoxyCompactList}\small\item\em Indlæser fil med backup og tilføjer det til \-\_\-database. \end{DoxyCompactList}\item 
int \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a94d59b4aed15d2e3ac4497a303458a3e}{Get\-Number\-Of\-Elements} ()
\begin{DoxyCompactList}\small\item\em Count kaldes på \-\_\-database og antallet af projekter returneres. \end{DoxyCompactList}\item 
int \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a15ba21ecb4f07eb8ace375610e0d2a60}{Index\-Of} (\hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} project)
\begin{DoxyCompactList}\small\item\em Finder index til specifikt project og returnerer det. \end{DoxyCompactList}\item 
bool \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a426cc5d125e76a34a12922fb4d4dc54a}{Try\-Item\-At\-Index} (int i, out \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} pd)
\begin{DoxyCompactList}\small\item\em Finder projektet med en bestemt index i \-\_\-database og returnerer det. Med bool check om projektet blev fundet. \end{DoxyCompactList}\item 
\hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a080aee3919fb171cd65c4951ebd84999}{Find\-Project\-By\-Name} (string project\-Name)
\begin{DoxyCompactList}\small\item\em Finder project'et og returnerer det. \end{DoxyCompactList}\item 
List$<$ \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} $>$ \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a97efce66ebf16ea7ba616510242f0909}{Get\-Active\-Projects} ()
\begin{DoxyCompactList}\small\item\em Finder alle projekter der er aktive til dags dato. \end{DoxyCompactList}\item 
I\-Enumerator \hyperlink{class_s_w2_a311___lib_1_1_project_collection_ac78b41ace5c29f5060c10c9b85d51a77}{Get\-Enumerator} ()
\begin{DoxyCompactList}\small\item\em En Get\-Enumerator så foreach og andre metoder kan få adgang til vores private \-\_\-database liste. \end{DoxyCompactList}\item 
I\-Enumerable \hyperlink{class_s_w2_a311___lib_1_1_project_collection_ad11ea87d861b459120e133610ca2c733}{Get\-Enumerator\-Sorting} ()
\begin{DoxyCompactList}\small\item\em Collection metode med sortering, der returnerer 1 objekt og husker hvor den er kommet til. \end{DoxyCompactList}\item 
override string \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a5b786cb02620422364d734c62cced30e}{To\-String} ()
\begin{DoxyCompactList}\small\item\em Override af To\-String metoden. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Properties}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a604414fab5a94d016c2fa388ecb79d56}{Count}\hspace{0.3cm}{\ttfamily  \mbox{[}get, set\mbox{]}}
\item 
static \hyperlink{class_s_w2_a311___lib_1_1_project_collection}{Project\-Collection} \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a18f7cdac958922dda5bcbf80351285e5}{Instance}\hspace{0.3cm}{\ttfamily  \mbox{[}get\mbox{]}}
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_s_w2_a311___lib_1_1_project_collection_a1ed31fd914301459a642f4da8d9d1109}{Project\-Collection} ()
\begin{DoxyCompactList}\small\item\em Privat constructor, så man ikke kommer til at lave flere instancer af \hyperlink{class_s_w2_a311___lib_1_1_project_collection}{Project\-Collection}. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
string \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a486403ebfe3cf4a9e383c87bf830b03a}{File\-Path} = App\-Domain.\-Current\-Domain.\-Base\-Directory + \char`\"{}\textbackslash{}\textbackslash{}projects\textbackslash{}\textbackslash{}\char`\"{}
\item 
List$<$ \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} $>$ \hyperlink{class_s_w2_a311___lib_1_1_project_collection_a0c754a374928fbd5afd8e4acb5eadc09}{\-\_\-database}
\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
static readonly \hyperlink{class_s_w2_a311___lib_1_1_project_collection}{Project\-Collection} \hyperlink{class_s_w2_a311___lib_1_1_project_collection_aff1a9dd4989b2908737e0ec37f2ea383}{\-\_\-instance} = new \hyperlink{class_s_w2_a311___lib_1_1_project_collection}{Project\-Collection}()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Laves til en singleton, så vi altid kun har én database. 



Definition at line 13 of file Project\-Collection.\-cs.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a1ed31fd914301459a642f4da8d9d1109}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Project\-Collection@{Project\-Collection}}
\index{Project\-Collection@{Project\-Collection}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Project\-Collection}]{\setlength{\rightskip}{0pt plus 5cm}S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Project\-Collection (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [private]}}}\label{class_s_w2_a311___lib_1_1_project_collection_a1ed31fd914301459a642f4da8d9d1109}


Privat constructor, så man ikke kommer til at lave flere instancer af \hyperlink{class_s_w2_a311___lib_1_1_project_collection}{Project\-Collection}. 



Definition at line 26 of file Project\-Collection.\-cs.



\subsection{Member Function Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a0677c65be53503572ba4a16f0195b7ca}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Add@{Add}}
\index{Add@{Add}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Add}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Add (
\begin{DoxyParamCaption}
\item[{string}]{project\-Name, }
\item[{string}]{admin\-Name}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a0677c65be53503572ba4a16f0195b7ca}


Add Project metode med minimalt input. 

Har check om project allerede eksisterer og om det har et korrekt navn. 


\begin{DoxyParams}{Parameters}
{\em project\-Name} & \\
\hline
{\em admin\-Name} & \\
\hline
\end{DoxyParams}


Definition at line 43 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_ae1f163afd567cd4f81dd40f4a96ecb0c}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Add@{Add}}
\index{Add@{Add}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Add}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Add (
\begin{DoxyParamCaption}
\item[{string}]{project\-Name, }
\item[{Date\-Time}]{project\-Start, }
\item[{Date\-Time}]{project\-End, }
\item[{string}]{admin\-Name}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_ae1f163afd567cd4f81dd40f4a96ecb0c}


Add Project metode, med standard input. 

Har check om project allerede eksisterer og om det har et korrekt navn. 


\begin{DoxyParams}{Parameters}
{\em project\-Name} & \\
\hline
{\em project\-Start} & \\
\hline
{\em project\-End} & \\
\hline
{\em admin\-Name} & \\
\hline
\end{DoxyParams}


Definition at line 65 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_aa2c2b0f22b1f245e47d3bdb46afb0d61}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Add@{Add}}
\index{Add@{Add}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Add}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Add (
\begin{DoxyParamCaption}
\item[{{\bf Project\-Data}}]{project\-Data}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_aa2c2b0f22b1f245e47d3bdb46afb0d61}


Add Project metode der tager et \hyperlink{class_s_w2_a311___lib_1_1_project_data}{Project\-Data} object som input. 

Har check om project har et korrekt navn og om det allerede eksisterer. 


\begin{DoxyParams}{Parameters}
{\em project\-Data} & \\
\hline
\end{DoxyParams}


Definition at line 84 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a2e9c9d62636550a34c44f4b1b9c73420}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Add\-Task\-To\-Project@{Add\-Task\-To\-Project}}
\index{Add\-Task\-To\-Project@{Add\-Task\-To\-Project}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Add\-Task\-To\-Project}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Add\-Task\-To\-Project (
\begin{DoxyParamCaption}
\item[{{\bf Project\-Data}}]{project, }
\item[{{\bf Task}}]{task}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a2e9c9d62636550a34c44f4b1b9c73420}


Finder projektet i databasen og tilføjer \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} til det. 


\begin{DoxyParams}{Parameters}
{\em project} & \\
\hline
{\em task} & \\
\hline
\end{DoxyParams}


Definition at line 125 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a080aee3919fb171cd65c4951ebd84999}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Find\-Project\-By\-Name@{Find\-Project\-By\-Name}}
\index{Find\-Project\-By\-Name@{Find\-Project\-By\-Name}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Find\-Project\-By\-Name}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Project\-Data} S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Find\-Project\-By\-Name (
\begin{DoxyParamCaption}
\item[{string}]{project\-Name}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a080aee3919fb171cd65c4951ebd84999}


Finder project'et og returnerer det. 

Med check om det har et korrekt navn og om det eksisterer. 


\begin{DoxyParams}{Parameters}
{\em project\-Name} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 250 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a97efce66ebf16ea7ba616510242f0909}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Active\-Projects@{Get\-Active\-Projects}}
\index{Get\-Active\-Projects@{Get\-Active\-Projects}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Active\-Projects}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf Project\-Data}$>$ S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Active\-Projects (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a97efce66ebf16ea7ba616510242f0909}


Finder alle projekter der er aktive til dags dato. 

Er ikke blevet implementeret endnu. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 279 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_ac78b41ace5c29f5060c10c9b85d51a77}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Enumerator@{Get\-Enumerator}}
\index{Get\-Enumerator@{Get\-Enumerator}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Enumerator}]{\setlength{\rightskip}{0pt plus 5cm}I\-Enumerator S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Enumerator (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_ac78b41ace5c29f5060c10c9b85d51a77}


En Get\-Enumerator så foreach og andre metoder kan få adgang til vores private \-\_\-database liste. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 296 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_ad11ea87d861b459120e133610ca2c733}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Enumerator\-Sorting@{Get\-Enumerator\-Sorting}}
\index{Get\-Enumerator\-Sorting@{Get\-Enumerator\-Sorting}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Enumerator\-Sorting}]{\setlength{\rightskip}{0pt plus 5cm}I\-Enumerable S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Enumerator\-Sorting (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_ad11ea87d861b459120e133610ca2c733}


Collection metode med sortering, der returnerer 1 objekt og husker hvor den er kommet til. 

Er ikke implementeret endnu. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 307 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a94d59b4aed15d2e3ac4497a303458a3e}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Number\-Of\-Elements@{Get\-Number\-Of\-Elements}}
\index{Get\-Number\-Of\-Elements@{Get\-Number\-Of\-Elements}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Number\-Of\-Elements}]{\setlength{\rightskip}{0pt plus 5cm}int S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Number\-Of\-Elements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a94d59b4aed15d2e3ac4497a303458a3e}


Count kaldes på \-\_\-database og antallet af projekter returneres. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 200 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a69e487c230d9420e2fb7e26e5d29cd85}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Observable\-Projects@{Get\-Observable\-Projects}}
\index{Get\-Observable\-Projects@{Get\-Observable\-Projects}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Observable\-Projects}]{\setlength{\rightskip}{0pt plus 5cm}Observable\-Collection$<${\bf Project\-Data}$>$ S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Observable\-Projects (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a69e487c230d9420e2fb7e26e5d29cd85}


Laver en Observable\-Collection med indholdet fra \-\_\-database og returnerer den. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 155 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a1e569adeb53d43bb9cf2ce92fb017e66}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Get\-Observable\-Task\-List@{Get\-Observable\-Task\-List}}
\index{Get\-Observable\-Task\-List@{Get\-Observable\-Task\-List}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Get\-Observable\-Task\-List}]{\setlength{\rightskip}{0pt plus 5cm}Observable\-Collection$<${\bf Task}$>$ S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Get\-Observable\-Task\-List (
\begin{DoxyParamCaption}
\item[{{\bf Project\-Data}}]{project}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a1e569adeb53d43bb9cf2ce92fb017e66}


Laver en Observable\-Collection med indholdet fra Task\-List og returnerer den. 


\begin{DoxyParams}{Parameters}
{\em project} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 147 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a15ba21ecb4f07eb8ace375610e0d2a60}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Index\-Of@{Index\-Of}}
\index{Index\-Of@{Index\-Of}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Index\-Of}]{\setlength{\rightskip}{0pt plus 5cm}int S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Index\-Of (
\begin{DoxyParamCaption}
\item[{{\bf Project\-Data}}]{project}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a15ba21ecb4f07eb8ace375610e0d2a60}


Finder index til specifikt project og returnerer det. 


\begin{DoxyParams}{Parameters}
{\em project} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 209 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a6c0106916ee2df101944d3c646e5a081}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Read\-Database\-From\-File@{Read\-Database\-From\-File}}
\index{Read\-Database\-From\-File@{Read\-Database\-From\-File}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Read\-Database\-From\-File}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Read\-Database\-From\-File (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a6c0106916ee2df101944d3c646e5a081}


Indlæser fil med backup og tilføjer det til \-\_\-database. 

Hvis filen ikke findes, indlæses intet. 

Definition at line 180 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_ac0742a2cd78d1a75a24e117ea355bc7f}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Remove@{Remove}}
\index{Remove@{Remove}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Remove}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Remove (
\begin{DoxyParamCaption}
\item[{string}]{project\-Name}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_ac0742a2cd78d1a75a24e117ea355bc7f}


Fjerner project hvis det eksisterer og Remove\-All returnerer antal elementer fjernet. 


\begin{DoxyParams}{Parameters}
{\em project\-Name} & \\
\hline
\end{DoxyParams}


Definition at line 113 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_af0c107c4af77e6b23a673806203c6020}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Remove\-Task\-From\-Project@{Remove\-Task\-From\-Project}}
\index{Remove\-Task\-From\-Project@{Remove\-Task\-From\-Project}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Remove\-Task\-From\-Project}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Remove\-Task\-From\-Project (
\begin{DoxyParamCaption}
\item[{string}]{project\-Name, }
\item[{{\bf Task}}]{task}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_af0c107c4af77e6b23a673806203c6020}


Finder projektet i databasen og fjerner \hyperlink{class_s_w2_a311___lib_1_1_task}{Task} fra det. 


\begin{DoxyParams}{Parameters}
{\em project\-Name} & \\
\hline
{\em task} & \\
\hline
\end{DoxyParams}


Definition at line 138 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a5b786cb02620422364d734c62cced30e}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!To\-String@{To\-String}}
\index{To\-String@{To\-String}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{To\-String}]{\setlength{\rightskip}{0pt plus 5cm}override string S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-To\-String (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a5b786cb02620422364d734c62cced30e}


Override af To\-String metoden. 

\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 319 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a426cc5d125e76a34a12922fb4d4dc54a}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Try\-Item\-At\-Index@{Try\-Item\-At\-Index}}
\index{Try\-Item\-At\-Index@{Try\-Item\-At\-Index}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Try\-Item\-At\-Index}]{\setlength{\rightskip}{0pt plus 5cm}bool S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Try\-Item\-At\-Index (
\begin{DoxyParamCaption}
\item[{int}]{i, }
\item[{out {\bf Project\-Data}}]{pd}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a426cc5d125e76a34a12922fb4d4dc54a}


Finder projektet med en bestemt index i \-\_\-database og returnerer det. Med bool check om projektet blev fundet. 


\begin{DoxyParams}{Parameters}
{\em i} & \\
\hline
{\em pd} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}

\end{DoxyReturn}


Definition at line 229 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a0649c5324c9b1f158c8ddafe14f27e03}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Write\-Database\-To\-File@{Write\-Database\-To\-File}}
\index{Write\-Database\-To\-File@{Write\-Database\-To\-File}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Write\-Database\-To\-File}]{\setlength{\rightskip}{0pt plus 5cm}void S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Write\-Database\-To\-File (
\begin{DoxyParamCaption}
\item[{string}]{filename, }
\item[{{\bf Project\-Data}}]{project}
\end{DoxyParamCaption}
)}}\label{class_s_w2_a311___lib_1_1_project_collection_a0649c5324c9b1f158c8ddafe14f27e03}


Skriver backup af \-\_\-database til en fil. 


\begin{DoxyParams}{Parameters}
{\em filename} & \\
\hline
{\em project} & \\
\hline
\end{DoxyParams}


Definition at line 164 of file Project\-Collection.\-cs.



\subsection{Member Data Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a0c754a374928fbd5afd8e4acb5eadc09}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!\-\_\-database@{\-\_\-database}}
\index{\-\_\-database@{\-\_\-database}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{\-\_\-database}]{\setlength{\rightskip}{0pt plus 5cm}List$<${\bf Project\-Data}$>$ S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-\_\-database\hspace{0.3cm}{\ttfamily [private]}}}\label{class_s_w2_a311___lib_1_1_project_collection_a0c754a374928fbd5afd8e4acb5eadc09}


Definition at line 17 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_aff1a9dd4989b2908737e0ec37f2ea383}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!\-\_\-instance@{\-\_\-instance}}
\index{\-\_\-instance@{\-\_\-instance}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{\-\_\-instance}]{\setlength{\rightskip}{0pt plus 5cm}readonly {\bf Project\-Collection} S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-\_\-instance = new {\bf Project\-Collection}()\hspace{0.3cm}{\ttfamily [static]}, {\ttfamily [private]}}}\label{class_s_w2_a311___lib_1_1_project_collection_aff1a9dd4989b2908737e0ec37f2ea383}


Definition at line 15 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a486403ebfe3cf4a9e383c87bf830b03a}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!File\-Path@{File\-Path}}
\index{File\-Path@{File\-Path}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{File\-Path}]{\setlength{\rightskip}{0pt plus 5cm}string S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-File\-Path = App\-Domain.\-Current\-Domain.\-Base\-Directory + \char`\"{}\textbackslash{}\textbackslash{}projects\textbackslash{}\textbackslash{}\char`\"{}\hspace{0.3cm}{\ttfamily [private]}}}\label{class_s_w2_a311___lib_1_1_project_collection_a486403ebfe3cf4a9e383c87bf830b03a}


Definition at line 16 of file Project\-Collection.\-cs.



\subsection{Property Documentation}
\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a604414fab5a94d016c2fa388ecb79d56}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Count@{Count}}
\index{Count@{Count}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Count}]{\setlength{\rightskip}{0pt plus 5cm}int S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Count\hspace{0.3cm}{\ttfamily [get]}, {\ttfamily [set]}}}\label{class_s_w2_a311___lib_1_1_project_collection_a604414fab5a94d016c2fa388ecb79d56}


Definition at line 19 of file Project\-Collection.\-cs.

\hypertarget{class_s_w2_a311___lib_1_1_project_collection_a18f7cdac958922dda5bcbf80351285e5}{\index{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}!Instance@{Instance}}
\index{Instance@{Instance}!SW2A311_Lib::ProjectCollection@{S\-W2\-A311\-\_\-\-Lib\-::\-Project\-Collection}}
\subsubsection[{Instance}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Project\-Collection} S\-W2\-A311\-\_\-\-Lib.\-Project\-Collection.\-Instance\hspace{0.3cm}{\ttfamily [static]}, {\ttfamily [get]}}}\label{class_s_w2_a311___lib_1_1_project_collection_a18f7cdac958922dda5bcbf80351285e5}


Definition at line 29 of file Project\-Collection.\-cs.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
S\-W2\-A311\-\_\-\-Lib/\hyperlink{_project_collection_8cs}{Project\-Collection.\-cs}\end{DoxyCompactItemize}
